package top.ucat.boots.starter.oauth2.client.beans.oauth.login;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * @Auther: Jun
 * @Date: 2019/9/4 09:49
 * @Description:
 */
@Data
public class BaseLoginDto implements Serializable {

    @NotBlank(message = "请提供授权类型")
    private String grantType;

    @NotBlank(message = "请提供客户端Id")
    private String clientId;

    @NotBlank(message = "请提供客户端秘钥")
    private String clientSecret;

    @NotBlank(message = "请提供系统类别")
    private String systemType;

    //是否保留token
    private boolean retainToken;

}
